xen.git
19 years ago[XEND] Add cpu_weight and cpu_cap parsing for SXP config create
Alastair Tse [Thu, 21 Dec 2006 12:08:27 +0000 (12:08 +0000)]
[XEND] Add cpu_weight and cpu_cap parsing for SXP config create

Reported by Masaki Kanno on :
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=835

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XM] Throw proper exception for xm console for unstarted domains.
Alastair Tse [Thu, 21 Dec 2006 12:05:41 +0000 (12:05 +0000)]
[XM] Throw proper exception for xm console for unstarted domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM] Emulates HPET in hypervisor and extend ACPI tables.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 12:05:34 +0000 (12:05 +0000)]
[HVM] Emulates HPET in hypervisor and extend ACPI tables.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.
Christian Limpach [Thu, 21 Dec 2006 11:33:15 +0000 (11:33 +0000)]
[qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[HVM][VMX] Save GS_SHADOW MSR only on x86/64.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:22:39 +0000 (11:22 +0000)]
[HVM][VMX] Save GS_SHADOW MSR only on x86/64.
Bug found by Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX][IA64] New file swiotlb.h.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:10:43 +0000 (11:10 +0000)]
[LINUX][IA64] New file swiotlb.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[QEMU] Include pthread.h.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:06:37 +0000 (11:06 +0000)]
[QEMU] Include pthread.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[qemu patches] Update patches upto changeset 13108:ed815cbdc90e.
Christian Limpach [Wed, 20 Dec 2006 15:22:46 +0000 (15:22 +0000)]
[qemu patches] Update patches upto changeset 13108:ed815cbdc90e.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Emulator extensions to decode ModRM.MOD == 3.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 15:16:13 +0000 (15:16 +0000)]
[XEN] Emulator extensions to decode ModRM.MOD == 3.
This allows emulation of register-only instructions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix cset 13107:04c5f7b71ff4
Tim Deegan [Wed, 20 Dec 2006 13:54:04 +0000 (13:54 +0000)]
[XEN] Fix cset 13107:04c5f7b71ff4
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Mask cmpxchg8b capability in cpuid for non-pae guests
Tim Deegan [Wed, 20 Dec 2006 12:07:10 +0000 (12:07 +0000)]
[HVM] Mask cmpxchg8b capability in cpuid for non-pae guests
This allows non-PAE NT4 kernels to boot
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't pass spurious fast-path faults to the guest at all.
Tim Deegan [Wed, 20 Dec 2006 12:04:38 +0000 (12:04 +0000)]
[XEN] Don't pass spurious fast-path faults to the guest at all.
Instead, retry and get a sensible fault from the hardware next time.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Clean up the shadow interface
Tim Deegan [Wed, 20 Dec 2006 12:03:07 +0000 (12:03 +0000)]
[XEN] Clean up the shadow interface
Remove a lot of unneccesary things from shadow.h, and move the shadow lock
entirely inside the shadow code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Add Etherboot option ROM, for network-booting HVM guests.
Tim Deegan [Wed, 20 Dec 2006 11:59:54 +0000 (11:59 +0000)]
[HVM] Add Etherboot option ROM, for network-booting HVM guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Add expansion-ROM boot support to the ROMBIOS
Tim Deegan [Wed, 20 Dec 2006 11:57:53 +0000 (11:57 +0000)]
[HVM] Add expansion-ROM boot support to the ROMBIOS
This is rudimentary support for parts of the BIOS Boot Specification,
just enough to use Etherboot ROM images.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Skip shadowing of guest PTE writes when known to be safe
Tim Deegan [Wed, 20 Dec 2006 11:54:57 +0000 (11:54 +0000)]
[XEN] Skip shadowing of guest PTE writes when known to be safe
That is, when the guest replaces a not-present pte with another one
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Better diagnostics of recursive shadow faults
Tim Deegan [Wed, 20 Dec 2006 11:53:01 +0000 (11:53 +0000)]
[XEN] Better diagnostics of recursive shadow faults
Give a trace of the recursive fault instead of BUG()ing in the shadow handler.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[NET] front: Fix interface teardown.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:39:22 +0000 (11:39 +0000)]
[NET] front: Fix interface teardown.

Original bug discovered and fixed by Glauber de Oliveira Costa
<gcosta@redhat.com>.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] dma: Use swiotlb mask for coherent mappings too
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:21:04 +0000 (11:21 +0000)]
[LINUX] dma: Use swiotlb mask for coherent mappings too

The recent change to use a default DMA bit width of 30 bits (required
by chips like the b44) only converted the streaming DMA primitives.
The coherent mappings are still hard-coded to 31 bits.  This means
that b44 still doesn't work under Xen.

This patch makes the io_tlb_dma_bits variable global and uses it for
coherent memory mappings.

Thanks to Calvin Webster for providing a machine with a b44 and 2G
of memory I've been able to verify that this finally makes the b44
work under Xen.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Rename 'io_tlb_dma_bits' to the more correct 'dma_bits'. This also
affects the name of the boot parameter, which is now 'dma_bits='.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Disallow nested event delivery.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:09:56 +0000 (11:09 +0000)]
[LINUX] Disallow nested event delivery.

This eliminates the risk of overflowing the kernel stack and is a
reasonable policy given that we have no concept of priorities among
event sources.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Sync per vcpu LAPIC timer with its TSC:
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:41:33 +0000 (10:41 +0000)]
[HVM] Sync per vcpu LAPIC timer with its TSC:
 - benefits LAPIC calibration
 - makes scheduling policy based on LAPIC more precise
 - makes LAPIC timer code becomes simpler and cleaner after using
   periodic time layer

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[HVM] Enable more than one platform timer (PIT/RTC/HPET)
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:37:23 +0000 (10:37 +0000)]
[HVM] Enable more than one platform timer (PIT/RTC/HPET)
programmed as periodic timer and adds them to abstract layer, which
keeps track of pending_intr_nr to avoid time interrupt lost and
sync'ed timer with TSC.

It also makes some cleanup to the time related code.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
19 years ago[HVM][SVM] Modify the interrupt/event injection logic.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:14:50 +0000 (10:14 +0000)]
[HVM][SVM] Modify the interrupt/event injection logic.

Resolves performance issues concerning AMD-V virtual interrupt/event
injection:
 - Remove extra VINTRs vmexits, and only setup fake interrupt if intr
   pending.
 - Allow both event injection and interrupt injection concurrently in
   vmcb.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
19 years ago[BLTAP] Use getpagesize() for portability.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:11:45 +0000 (10:11 +0000)]
[BLTAP] Use getpagesize() for portability.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[HVM] Clean up CPUID handling.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:09:42 +0000 (10:09 +0000)]
[HVM] Clean up CPUID handling.
From: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBXC] Fix iteration over GDT in save/restore code.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:06:33 +0000 (10:06 +0000)]
[LIBXC] Fix iteration over GDT in save/restore code.
Bug spotted by Tim Wood.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded tag 3.0.4-branched for changeset 057f7c4dbed1c75a3fbe446d346cee04cff31497
kfraser@localhost.localdomain [Wed, 20 Dec 2006 09:48:21 +0000 (09:48 +0000)]
Added tag 3.0.4-branched for changeset 057f7c4dbed1c75a3fbe446d346cee04cff31497

19 years agoQcow-create reserve flag update.
Julian Chesterfield [Tue, 19 Dec 2006 21:33:12 +0000 (21:33 +0000)]
Qcow-create reserve flag update.

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years agoQcow driver code cleanup:
Julian Chesterfield [Tue, 19 Dec 2006 20:42:56 +0000 (20:42 +0000)]
Qcow driver code cleanup:
- Remove global QCOW flags
- rename sparseness flag to -r fore 'reserve'
- Add ROUNDUP macro
- Check for qtruncate failures

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years agoFix parsing of cpus in the guest configuration file.
Ewan Mellor [Tue, 19 Dec 2006 12:00:11 +0000 (12:00 +0000)]
Fix parsing of cpus in the guest configuration file.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years ago[XENOPROF] Fix buffer sharing with auto-translate guests.
kfraser@localhost.localdomain [Tue, 19 Dec 2006 11:00:05 +0000 (11:00 +0000)]
[XENOPROF] Fix buffer sharing with auto-translate guests.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Tue, 19 Dec 2006 10:53:17 +0000 (10:53 +0000)]
Merge with xen-ia64-unstable.hg

19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:56:34 +0000 (10:56 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] evtchn_callback fix and clean
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:20:34 +0000 (10:20 -0700)]
[IA64] evtchn_callback fix and clean

Since we had changed to use event callback to deliver interrupts,

1. The pending_interruption is changed to pending_event.

2. get_ivr, set_tpr, get_trp and set_eoi are not used or only used
   in the initialization phase. There is no need to write this code
   in assembly.  This code is deleted.

3. hyper_ssm_i needs to be rewritten to jump to entchn_callback_handler
   instead of iva+0x3000 interrupt handler.  I will do this later.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Mask out reserved bits to avoid Reserved Register/Field faults.
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:04:49 +0000 (10:04 -0700)]
[IA64] Mask out reserved bits to avoid Reserved Register/Field faults.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[IA64] Reflect general exceptions
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 16:48:23 +0000 (09:48 -0700)]
[IA64] Reflect general exceptions

General exceptions in the domU with isr.code > 0x20 are now reflected
to the domU.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80
Ian Campbell [Mon, 18 Dec 2006 16:11:19 +0000 (16:11 +0000)]
[XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80

This changeset broke the ELF note layout on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Only print progress dots when scrubbing actual memory.
kfraser@localhost.localdomain [Mon, 18 Dec 2006 14:38:38 +0000 (14:38 +0000)]
[XEN] Only print progress dots when scrubbing actual memory.
Signed-off-by: Jes Sorensen <jes@sgi.com>
19 years agoFix _login to pass arguments to the server unconditionally, rather than
Ewan Mellor [Mon, 18 Dec 2006 00:14:40 +0000 (00:14 +0000)]
Fix _login to pass arguments to the server unconditionally, rather than
requiring precisely two on the client-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the parsing of the image sexpr to use PV_kernel et al, rather than the old
Ewan Mellor [Mon, 18 Dec 2006 00:07:55 +0000 (00:07 +0000)]
Fix the parsing of the image sexpr to use PV_kernel et al, rather than the old
kernel_ variables.  This fixes reboot of PV guests.

Also, give XendConfig its own logger, to allow us to tweak the log level for
that module independently.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoWrite the xfb configuration details to the store, rather than storing them in
Ewan Mellor [Mon, 18 Dec 2006 00:00:57 +0000 (00:00 +0000)]
Write the xfb configuration details to the store, rather than storing them in
memory.  This ensures that the VM can be rebooted after a xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMinor tidyup.
Ewan Mellor [Sun, 17 Dec 2006 23:59:08 +0000 (23:59 +0000)]
Minor tidyup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix printing of usage when OptionError is thrown.
Ewan Mellor [Sun, 17 Dec 2006 18:24:40 +0000 (18:24 +0000)]
Fix printing of usage when OptionError is thrown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoOnly try to label resources if ACM is enabled.
Ewan Mellor [Sat, 16 Dec 2006 12:54:43 +0000 (12:54 +0000)]
Only try to label resources if ACM is enabled.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoAn error occurs if the first detach was successful and the 2nd one is
Ewan Mellor [Sat, 16 Dec 2006 12:52:18 +0000 (12:52 +0000)]
An error occurs if the first detach was successful and the 2nd one is
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[IA64] remove global zero initializers
awilliam@xenbuild2.aw [Fri, 15 Dec 2006 17:49:11 +0000 (10:49 -0700)]
[IA64] remove global zero initializers

No need to init global variables to zero as it will place them in the
data segment rather than the bss segment.

Signed-off-by: Jes Sorensen <jes@sgi.com>
19 years ago[TOOLS] USe -mno-direct-seg-refs when building on i386.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 11:53:45 +0000 (11:53 +0000)]
[TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix mem-set, mem-max, and vcpu-set commands when used against inactive domains.
Ewan Mellor [Fri, 15 Dec 2006 11:50:04 +0000 (11:50 +0000)]
Fix mem-set, mem-max, and vcpu-set commands when used against inactive domains.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoUse new -p flag to qcow-create.
Ewan Mellor [Fri, 15 Dec 2006 11:48:40 +0000 (11:48 +0000)]
Use new -p flag to qcow-create.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClean-up hvm/shadow interaction around cr3 updates.
Steven Hand [Fri, 15 Dec 2006 11:47:24 +0000 (11:47 +0000)]
Clean-up hvm/shadow interaction around cr3 updates.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix more enum demarshalling.
Ewan Mellor [Fri, 15 Dec 2006 11:33:50 +0000 (11:33 +0000)]
Fix more enum demarshalling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a test for xen_vm_get_power_state.
Ewan Mellor [Fri, 15 Dec 2006 11:00:04 +0000 (11:00 +0000)]
Added a test for xen_vm_get_power_state.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove XendCheckpoint's forkHelper error handling.
Brendan Cully [Thu, 14 Dec 2006 01:45:50 +0000 (17:45 -0800)]
Improve XendCheckpoint's forkHelper error handling.

When inputHandler raises an exception, close stdin and stdout in the
child before attempting to close stderr, which is held open by a
separate thread. Without this patch, exceptions raised by device
migration caused xend to hang on child.childerr.close().

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoPersist all the Xen-API data values for VMs.
Ewan Mellor [Sat, 16 Dec 2006 12:49:23 +0000 (12:49 +0000)]
Persist all the Xen-API data values for VMs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoWrite the new version of the persisted config to a tempfile and then rename it,
Ewan Mellor [Fri, 15 Dec 2006 17:19:00 +0000 (17:19 +0000)]
Write the new version of the persisted config to a tempfile and then rename it,
to avoid corrupting the file on failure.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow the XenAPI Session object to have login_with_password called as a
Ewan Mellor [Fri, 15 Dec 2006 17:18:02 +0000 (17:18 +0000)]
Allow the XenAPI Session object to have login_with_password called as a
methodname, to re-login through the same object (say when the server is
restarted).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoVNC pasword authentication support for the paravirt framebuffer server.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 17:33:31 +0000 (17:33 +0000)]
VNC pasword authentication support for the paravirt framebuffer server.

The rules for configuring the password are equivalent of those used
for HVM, but the actual guest config option is a little different as a
result of the recent refactoring of the PVFB config file syntax.

 - If the 'vfb' option in the guest config has a 'vncpasswd' parameter
   specified
      - If the passwd is not zero length, use that
      - Else run with no authentication (important as it enables
        override of next rule)
 - Else-if the xend-config.sxp has a password specified use that
 - Else run with no authentication

Example configuration:

 - To set an explicit guest password:
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=123456"]

 - To disable authentication, overriding any XenD configured
   default password
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd="]

 - To run with default XenD configured password (if any)
    vfb = [ "type=vnc,vncunused=1,vnclisten=0.0.0.0"]

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoFix pointer encoding in vncfb (middle and right button were swapped).
kfraser@localhost.localdomain [Fri, 15 Dec 2006 17:30:51 +0000 (17:30 +0000)]
Fix pointer encoding in vncfb (middle and right button were swapped).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years ago[XENFB] xenfb_update_screen() calls zap_page_range() while holding spinlock mm_lock.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 17:29:25 +0000 (17:29 +0000)]
[XENFB] xenfb_update_screen() calls zap_page_range() while holding spinlock mm_lock.

Changeset 13018:c98ca86138a7422cdf9b15d87c95619b7277bb6a merely sweeps
the bug under the carpet: it silences zap_page_range()'s cries for
help by keeping interrupts enabled.  That doesn't fix the bug, and
it's also wrong: if a critical region gets interrupted, and the
interrupt printk()s, xenfb_refresh() gets executed and promptly
deadlocks.

This patch fixes the locking, but leaves open a race between
xenfb_update_screen() and do_no_page().  See the source code for a
detailed explanation of how it works, and where it fails.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years agoAdd CONFIG_X86_{32,64} Makefile variables.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 17:27:57 +0000 (17:27 +0000)]
Add CONFIG_X86_{32,64} Makefile variables.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse portable recursive mutex in qemue mapcache.
Steven Hand [Fri, 15 Dec 2006 17:16:55 +0000 (17:16 +0000)]
Use portable recursive mutex in qemue mapcache.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix VM.get_power_state API. On the xend side an integer representation of the power...
jfehlig@jfehlig2.provo.novell.com [Thu, 14 Dec 2006 01:06:48 +0000 (18:06 -0700)]
Fix VM.get_power_state API.  On the xend side an integer representation of the power state was being returned instead of a string representation as specified by the XenAPI spec.

On the c-bindings side the marshalling code converts the string representation to an enum value.  A subsequent attempt to convert the enum from a string to an enum was causing a seg fault.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years ago[XM] Fix network-attach help message.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 09:52:19 +0000 (09:52 +0000)]
[XM] Fix network-attach help message.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix check_udev in the case where udev is missing -- test's -a does not shortcut.
Ewan Mellor [Fri, 15 Dec 2006 09:50:33 +0000 (09:50 +0000)]
Fix check_udev in the case where udev is missing -- test's -a does not shortcut.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRevert Makefile changes from 13023:70155087efe89 -- they break make dist.
Ewan Mellor [Fri, 15 Dec 2006 09:39:26 +0000 (09:39 +0000)]
Revert Makefile changes from 13023:70155087efe89 -- they break make dist.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[NET]: Fix segmentation of linear packets
kfraser@localhost.localdomain [Fri, 15 Dec 2006 09:38:56 +0000 (09:38 +0000)]
[NET]: Fix segmentation of linear packets

skb_segment fails to segment linear packets correctly because it
tries to write all linear parts of the original skb into each
segment.  This will always panic as each segment only contains
enough space for one MSS.

This was not detected earlier because linear packets should be
rare for GSO.  In fact it still remains to be seen what exactly
created the linear packets that triggered this bug.  Basically
the only time this should happen is if someone enables GSO
emulation on an interface that does not support SG.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
19 years ago[XEN] Clean up list.h for Xen formatting rules and add hlist macros
kfraser@localhost.localdomain [Fri, 15 Dec 2006 09:29:15 +0000 (09:29 +0000)]
[XEN] Clean up list.h for Xen formatting rules and add hlist macros
from Linux kernel.
Based on a patch from Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove unused function from check script.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 09:17:41 +0000 (09:17 +0000)]
Remove unused function from check script.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoReplace the error message when invalid xm commands are given.
Ewan Mellor [Fri, 15 Dec 2006 09:08:41 +0000 (09:08 +0000)]
Replace the error message when invalid xm commands are given.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix exit status for failed commands, and tidy up the usage display.
Ewan Mellor [Fri, 15 Dec 2006 02:01:38 +0000 (02:01 +0000)]
Fix exit status for failed commands, and tidy up the usage display.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix 64-bit build with a PRIu64.
Ewan Mellor [Fri, 15 Dec 2006 01:42:31 +0000 (01:42 +0000)]
Fix 64-bit build with a PRIu64.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUpdated test to match new booting arrangement.
Ewan Mellor [Thu, 14 Dec 2006 18:30:35 +0000 (18:30 +0000)]
Updated test to match new booting arrangement.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix exception handling in xend start-of-day.
Steven Hand [Thu, 14 Dec 2006 20:58:27 +0000 (20:58 +0000)]
Fix exception handling in xend start-of-day.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoAdd sparseness flag to qcow-create.
Julian Chesterfield [Thu, 14 Dec 2006 20:23:07 +0000 (20:23 +0000)]
Add sparseness flag to qcow-create.

For environments where space must be guaranteed in advance
use the -p flag to remove sparseness from the qcow file.

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years agoRemove the boot-type implementation -- now replaced by the HVM and PV boot
Ewan Mellor [Thu, 14 Dec 2006 18:24:41 +0000 (18:24 +0000)]
Remove the boot-type implementation -- now replaced by the HVM and PV boot
configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement new booting parameters for Xen-API, and backwards compatibility for
Ewan Mellor [Thu, 14 Dec 2006 18:24:14 +0000 (18:24 +0000)]
Implement new booting parameters for Xen-API, and backwards compatibility for
the old bootloader settings.

We now have two mutually exclusive config groups HVM and PV, with HVM/boot
and PV/{bootloader,kernel,ramdisk,args,bootloader_args}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoStub implementations of VM.auto_power_on, VM.consoles.
Ewan Mellor [Thu, 14 Dec 2006 17:43:41 +0000 (17:43 +0000)]
Stub implementations of VM.auto_power_on, VM.consoles.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove a number of unused configuration dictionaries -- these have all
Ewan Mellor [Thu, 14 Dec 2006 17:37:29 +0000 (17:37 +0000)]
Remove a number of unused configuration dictionaries -- these have all
moved into XendConfig now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix calls to destroyDevice that are missing a force flag.
Ewan Mellor [Thu, 14 Dec 2006 15:32:44 +0000 (15:32 +0000)]
Fix calls to destroyDevice that are missing a force flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd some exception logging.
Ewan Mellor [Thu, 14 Dec 2006 15:10:47 +0000 (15:10 +0000)]
Add some exception logging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded xm shell command, taken from xapi.py, to make testing the Xen-API calls
Ewan Mellor [Thu, 14 Dec 2006 14:54:24 +0000 (14:54 +0000)]
Added xm shell command, taken from xapi.py, to make testing the Xen-API calls
a little easier.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoHave a 1GiB disk rather than 1MiB, for a slightly more sensible test.
Ewan Mellor [Thu, 14 Dec 2006 14:50:35 +0000 (14:50 +0000)]
Have a 1GiB disk rather than 1MiB, for a slightly more sensible test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Thu, 14 Dec 2006 18:22:58 +0000 (18:22 +0000)]
Merge with xen-ia64-unstable.hg

19 years agoTidy up.
Ewan Mellor [Thu, 14 Dec 2006 17:25:38 +0000 (17:25 +0000)]
Tidy up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[IA64][HVM] Use vcpu info from getdomaininfo
awilliam@xenbuild2.aw [Thu, 14 Dec 2006 16:56:41 +0000 (09:56 -0700)]
[IA64][HVM] Use vcpu info from getdomaininfo

This replaces the get/set_param using HVM_PARAM_VCPUS

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[XEN] Provide PV guests with emulated PIT.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 16:27:10 +0000 (16:27 +0000)]
[XEN] Provide PV guests with emulated PIT.
This is needed for some video-controller BIOSes which use PIT channel
2 for delay loops.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[TOOLS] Fix check-script compatibility with non-bash shells.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 16:00:31 +0000 (16:00 +0000)]
[TOOLS] Fix check-script compatibility with non-bash shells.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 14 Dec 2006 15:57:36 +0000 (08:57 -0700)]
merge with xen-unstable.hg

19 years ago[IA64][BUILD] XEN_XKBUFF needs to depend on NET
awilliam@xenbuild2.aw [Thu, 14 Dec 2006 15:54:54 +0000 (08:54 -0700)]
[IA64][BUILD] XEN_XKBUFF needs to depend on NET

Signed-Off-By: Simon Horman <horms@verge.net.au>
19 years ago[XEN] Fix memory allocator after recent bootmem change.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 15:43:40 +0000 (15:43 +0000)]
[XEN] Fix memory allocator after recent bootmem change.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] A couple of check-script cleanups.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 15:12:38 +0000 (15:12 +0000)]
[TOOLS] A couple of check-script cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[KEXEC] Clean up kexec code and fix panic-induced reboot when
kfraser@localhost.localdomain [Thu, 14 Dec 2006 15:06:22 +0000 (15:06 +0000)]
[KEXEC] Clean up kexec code and fix panic-induced reboot when
kdump is not in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd another package check (python-xml).
kfraser@localhost.localdomain [Thu, 14 Dec 2006 14:13:18 +0000 (14:13 +0000)]
Add another package check (python-xml).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix deadlock when accessing IO memory.
Steven Hand [Thu, 14 Dec 2006 12:35:23 +0000 (12:35 +0000)]
Fix deadlock when accessing IO memory.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[NET] front: Fix crashes when xenstore watches fire multiple times.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 12:21:28 +0000 (12:21 +0000)]
[NET] front: Fix crashes when xenstore watches fire multiple times.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Boot allocator searches from earliest registered
kfraser@localhost.localdomain [Thu, 14 Dec 2006 12:02:30 +0000 (12:02 +0000)]
[XEN] Boot allocator searches from earliest registered
memory region instead of 0.

Based on a patch from Jes Sorensen <jes@sgi.com> which
massively improves boot time on SGI Altix systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XM] Fix typo in 'xm vcpu-list' header.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 11:39:40 +0000 (11:39 +0000)]
[XM] Fix typo in 'xm vcpu-list' header.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
19 years ago[XENFB] No need for IRQs to be disabled in critical regions.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 11:37:14 +0000 (11:37 +0000)]
[XENFB] No need for IRQs to be disabled in critical regions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Fix seg-fixup warning.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 11:09:27 +0000 (11:09 +0000)]
[LINUX] Fix seg-fixup warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Spot incorrect use of lXe_write & Co.
kfraser@localhost.localdomain [Thu, 14 Dec 2006 10:49:54 +0000 (10:49 +0000)]
[XEN] Spot incorrect use of lXe_write & Co.
Signed-off-by: Jan Beulich <jbeulich@novell.com>